<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>导航</title>
    <link rel="stylesheet" href="bootstrap/css/bootstrap.min.css">
</head>
<body>
    <!-- nav-stacked垂直 nav-pills深色-->

    <ul class="nav nav-pills nav-justified" id="mytab">
        <li role="presentation" class="active"><a href="#">home</a></li>
        <li role="presentation" class="disabled"><a href="#">home</a></li>
        <li role="presentation"><a href="#">home</a></li>
        <li role="presentation"><a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button">home
            下拉菜单
            <span class="caret"></span>
        </a>
            <ul class="dropdown-menu" role="menu">
                <li><a href="#">一</a></li>
                <li><a href="#">一</a></li>
                <li><a href="#">一</a></li>
                <li><a href="#">一</a></li>
            </ul>
        </li>

    </ul>
    <script src="jquery/jquery-2.1.4.min.js"></script>
    <script src="bootstrap/js/bootstrap.min.js"></script>
    <script>
        $('#mytab a').click(function(e){
            $(this).tab("show");
        });
    </script>
</body>
</html>